<?php
	include '../controllers/ADController.php';
	
	$timestamp = $_REQUEST['time'];
	$adCount = getUpdateAdvertisingCount($timestamp);
	$adJson = json_encode(getActiveAdvertising());
	echo "{\"advertisings\":".$adJson.",\"count\":\"".$adCount."\"}";	
?>